1 /*
2 * File: pitch_ap.h
3 *
4 * Code generated for Simulink model 'pitch_ap'.
5 *
6 * Model version : 1.90
7 * Simulink Coder version : 8.5 (R2013b) 08-Aug-2013
8 * C/C++ source code generated on : Mon Feb 03 08:13:44 2014
9 *
10 * Target selection: ert.tlc
11 * Embedded hardware selection: 32-bit Embedded Processor
12 * Code generation objectives: Unspecified
13 * Validation result: Not run
14 */
15
16 #ifndef RTW_HEADER_pitch_ap_h_
17 #define RTW_HEADER_pitch_ap_h_
18 #ifndef pitch_ap_COMMON_INCLUDES_
19 # define pitch_ap_COMMON_INCLUDES_
20 #include <math.h>
21 #include <string.h>
22 #include "rtwtypes.h"
23 #include "model_reference_types.h"
24 #endif /* pitch_ap_COMMON_INCLUDES_ */
25
26 #include "pitch_ap_types.h"
27
28 /* Child system includes */
29 #include "attitude_controller.h"
30 #include "Altitude_Mode.h"
31
32 /* Block signals for model 'pitch_ap' */
33 typedef struct {
34 real_T thetaCmd; /* '<Root>/Mode switch' (Output 1) */
35 } rtB_pitch_ap;
36
37 /* Block states (auto storage) for model 'pitch_ap' */
38 typedef struct {
39 real_T FixPtUnitDelay1_DSTATE; /* '<S5>/FixPt Unit Delay1' (DWork 1) */
40 rtMdlrefDWork_Altitude_Mode AltitudeMode_DWORK1;/* '<Root>/Altitude Mode' (DWork 1) */
41 rtMdlrefDWork_attitude_controller BasicPitchMode_DWORK1;/* '<Root>/Basic Pitch Mode' (DWork 1) */
42 } rtDW_pitch_ap;
43
44 typedef struct {
45 rtB_pitch_ap rtb;
46 rtDW_pitch_ap rtdw;
47 } rtMdlrefDWork_pitch_ap;
48
49 /* Model reference registration function */
50 extern void pitch_ap_initialize(rtB_pitch_ap *localB, rtDW_pitch_ap *localDW);
51 extern void pitch_ap_Start(rtDW_pitch_ap *localDW);
52 extern void pitch_ap(const real_T *rtu_Phi, const real_T *rtu_Theta, const
53 real_T *rtu_Q, const real_T *rtu_R, const real_T *rtu_Alt,
54 const real_T *rtu_AltRate, const real_T *rtu_TAS, const
55 boolean_T *rtu_APEng, const boolean_T *rtu_ALTMode, const
56 real_T *rtu_AltRef, const real_T *rtu_PitchWheel, real_T
57 *rty_ElvCmd, rtB_pitch_ap *localB, rtDW_pitch_ap *localDW,
58 real_T rtp_dispGain, real_T rtp_intGain, real_T
59 rtp_rateGain);
60
61 /*-
62 * The generated code includes comments that allow you to trace directly
63 * back to the appropriate location in the model. The basic format
64 * is <system>/block_name, where system is the system number (uniquely
65 * assigned by Simulink) and block_name is the name of the block.
66 *
67 * Use the MATLAB hilite_system command to trace the generated code back
68 * to the model. For example,
69 *
70 * hilite_system('<S3>') - opens system 3
71 * hilite_system('<S3>/Kp') - opens and selects block Kp which resides in S3
72 *
73 * Here is the system hierarchy for this model
74 *
75 * '<Root>' : 'pitch_ap'
76 * '<S1>' : 'pitch_ap/Model Info'
77 * '<S2>' : 'pitch_ap/Pitch Rate Feedback'
78 * '<S3>' : 'pitch_ap/Pitch Reference'
79 * '<S4>' : 'pitch_ap/Pitch Rate Feedback/Angle Conversion'
80 * '<S5>' : 'pitch_ap/Pitch Reference/Latch Theta'
81 */
82
83 /*-
84 * Requirements for '<Root>': pitch_ap
85 */
86 #endif /* RTW_HEADER_pitch_ap_h_ */
87
88 /*
89 * File trailer for generated code.
90 *
91 * [EOF]
92 */
93
|